﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Input;
using HandyControl.Controls;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using WpfApp1.Service;
namespace WpfApp1.ViewModels
{
    public partial class MainAppViewModel : ObservableObject
    {
        /// <summary>
        /// MVVM模式的可观测属性
        /// </summary>
        [ObservableProperty]
        private int counter = 0;

        /// <summary>
        /// 供视图界面调用的Command定义
        /// </summary>
        [RelayCommand]
        private void OnCounterIncrement()
        {
            counter++;
        }
        public MainAppViewModel()
        {
            

        }
       
    }
}
